import request from '@/utils/request'

// 查询商户车辆出租列表
export function listposRent(query) {
  return request({
    url: '/pos/posRent/list',
    method: 'get',
    params: query
  })
}

// 查询商户车辆出租详细
export function getposRent(id) {
  return request({
    url: '/pos/posRent/' + id,
    method: 'get'
  })
}

// 新增商户车辆出租
export function addposRent(data) {
  return request({
    url: '/pos/posRent',
    method: 'post',
    data: data
  })
}

// 修改商户车辆出租
export function updateposRent(data) {
  return request({
    url: '/pos/posRent',
    method: 'put',
    data: data
  })
}

// 删除商户车辆出租
export function delposRent(id) {
  return request({
    url: '/pos/posRent/' + id,
    method: 'delete'
  })
}

// 导出商户车辆出租
export function exportposRent(query) {
  return request({
    url: '/pos/posRent/export',
    method: 'get',
    params: query
  })
}

// /pos/posRent/submit

export function submitRent(data) {
  return request({
    url: '/pos/posRent/submit',
    method: 'post',
    data
  })
}

// /pos/posItemLog/list get 历史记录

export function posItemLog(query) {
  return request({
    url: '/pos/posItemLog/list',
    method: 'get',
    params: query
  })
}



export function posRentban(data) {
  return request({
    url: '/pos/posRent/ban',
    method: 'post',
    data
  })
}